import request from '@/utils/request'

// 查询workexample列表
export function listWorkexample(query) {
  return request({
    url: '/teacher/workexample/list',
    method: 'get',
    params: query
  })
}

// 查询workexample详细
export function getWorkexample(workexampleId) {
  return request({
    url: '/teacher/workexample/' + workexampleId,
    method: 'get'
  })
}

// 新增workexample
export function addWorkexample(data) {
  return request({
    url: '/teacher/workexample/add',
    method: 'post',
    data: data
  })
}

// 修改workexample
export function updateWorkexample(data) {
  return request({
    url: '/teacher/workexample/update',
    method: 'post',
    data: data
  })
}

// 删除workexample
export function delWorkexample(workexampleId) {
  return request({
    url: '/teacher/workexample/' + workexampleId,
    method: 'post'
  })
}
